package com.xd.core.api.mapper;

import com.github.pagehelper.Page;
import com.xd.core.api.entity.AdvancePaymentOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xd.core.finance.dto.AdvancePaymentRecordDto;
import com.xd.core.finance.vo.AdvancePaymentRecordVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 预付款订单信息表 Mapper 接口
 * </p>
 *
 * @author ZX
 * @since 2025-06-27
 */
public interface AdvancePaymentOrderMapper extends BaseMapper<AdvancePaymentOrder> {

    void updateStatus(String transId, String status, String failCause, BigDecimal FWMoney);

    void updateShareStatus(String transId);

    void updateVoucher(String orderNo, String virtualPath,String tradeTime);

    Page<AdvancePaymentRecordVo> getAdvancePaymentRecord(@Param("dto") AdvancePaymentRecordDto dto,@Param("companyId") Integer companyId,@Param("userIds") List<Integer> userIds);
}
